home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / red_cross_eru.swf / scripts / __Packages / gamebase / control / StartMenu.as < prev    next >
Text File  |  2011-09-19  |  12KB  |  283 lines

  1. §§push(true);
  2. §§push(false);
  3. §§push(false);
  4. §§push(true);
  5. while(true)
  6. {
  7.    if(┬º┬ºpop())
  8.    {
  9.    }
  10.    if(┬º┬ºpop())
  11.    {
  12.    }
  13.    if(┬º┬ºpop())
  14.    {
  15.       break;
  16.    }
  17.    ┬º┬ºpush(true);
  18.    ┬º┬ºpush(false);
  19. }
  20. if(!e.f)
  21. {
  22.    e.f = new g();
  23. }
  24. §§pop();
  25. if(!e.f.h)
  26. {
  27.    e.f.h = new g();
  28. }
  29. §§pop();
  30. if(!e.f.h[§§constant(4)])
  31. {
  32.    f.h[┬º┬ºconstant(4)] extends f[┬º┬ºconstant(6)];
  33.    var _loc2_ = f.h[┬º┬ºconstant(4)] = function()
  34.    {
  35.       super();
  36.       this[┬º┬ºconstant(5)]();
  37.    }[┬º┬ºconstant(7)];
  38.    _loc2_[┬º┬ºconstant(5)] = function()
  39.    {
  40.       _global[┬º┬ºconstant(9)][┬º┬ºconstant(10)](┬º┬ºconstant(8),this);
  41.       this[┬º┬ºconstant(11)]();
  42.    };
  43.    _loc2_[┬º┬ºconstant(12)] = function(command)
  44.    {
  45.       _global[┬º┬ºconstant(14)][┬º┬ºconstant(15)](┬º┬ºconstant(13));
  46.       this[┬º┬ºconstant(16)][┬º┬ºconstant(17)][┬º┬ºconstant(18)]();
  47.       this[┬º┬ºconstant(19)] = command;
  48.       if(command == ┬º┬ºconstant(20))
  49.       {
  50.          _global[┬º┬ºconstant(21)] = Number(this[┬º┬ºconstant(16)][┬º┬ºconstant(22)][┬º┬ºconstant(23)]);
  51.          this[┬º┬ºconstant(16)][┬º┬ºconstant(25)](┬º┬ºconstant(24));
  52.          this[┬º┬ºconstant(16)][┬º┬ºconstant(27)][┬º┬ºconstant(25)](┬º┬ºconstant(26));
  53.       }
  54.       if(command == ┬º┬ºconstant(28))
  55.       {
  56.          this[┬º┬ºconstant(16)][┬º┬ºconstant(25)](┬º┬ºconstant(24));
  57.          this[┬º┬ºconstant(16)][┬º┬ºconstant(27)][┬º┬ºconstant(25)](┬º┬ºconstant(26));
  58.       }
  59.       if(command == ┬º┬ºconstant(29))
  60.       {
  61.          _global[┬º┬ºconstant(30)][┬º┬ºconstant(34)](┬º┬ºconstant(33),┬º┬ºconstant(32),_global[┬º┬ºconstant(30)][┬º┬ºconstant(31)]());
  62.          this[┬º┬ºconstant(16)][┬º┬ºconstant(35)] = false;
  63.       }
  64.       if(command == ┬º┬ºconstant(36))
  65.       {
  66.          _global[┬º┬ºconstant(37)][┬º┬ºconstant(38)]();
  67.       }
  68.       if(command == ┬º┬ºconstant(39))
  69.       {
  70.       }
  71.       if(command == ┬º┬ºconstant(40))
  72.       {
  73.          _global[┬º┬ºconstant(9)][┬º┬ºconstant(41)]();
  74.       }
  75.       if(command == ┬º┬ºconstant(42))
  76.       {
  77.          _global[┬º┬ºconstant(9)][┬º┬ºconstant(43)]();
  78.       }
  79.       if(command == ┬º┬ºconstant(44))
  80.       {
  81.          this[┬º┬ºconstant(45)]();
  82.       }
  83.       if(command == ┬º┬ºconstant(46))
  84.       {
  85.          this[┬º┬ºconstant(49)](_global[┬º┬ºconstant(48)],┬º┬ºconstant(47));
  86.       }
  87.       if(command == ┬º┬ºconstant(50))
  88.       {
  89.          this[┬º┬ºconstant(49)](_global[┬º┬ºconstant(51)],┬º┬ºconstant(47));
  90.       }
  91.       if(command == ┬º┬ºconstant(52))
  92.       {
  93.          this[┬º┬ºconstant(49)](_global[┬º┬ºconstant(52)],┬º┬ºconstant(47));
  94.       }
  95.    };
  96.    _loc2_[┬º┬ºconstant(53)] = function()
  97.    {
  98.       _global[┬º┬ºconstant(54)][┬º┬ºconstant(55)]();
  99.       delete _global[┬º┬ºconstant(54)];
  100.       _global[┬º┬ºconstant(54)] = undefined;
  101.       if(this[┬º┬ºconstant(19)] == ┬º┬ºconstant(20))
  102.       {
  103.          _global[┬º┬ºconstant(56)] = ┬º┬ºconstant(57);
  104.          _global[┬º┬ºconstant(54)] = new f[┬º┬ºconstant(58)]();
  105.       }
  106.       if(this[┬º┬ºconstant(19)] == ┬º┬ºconstant(28))
  107.       {
  108.          this[┬º┬ºconstant(16)][┬º┬ºconstant(34)](┬º┬ºconstant(62),┬º┬ºconstant(61),this[┬º┬ºconstant(16)][┬º┬ºconstant(31)](),{┬º\┬º\┬ºconstant(59)┬º:┬º┬ºconstant(60)});
  109.       }
  110.    };
  111.    _loc2_[┬º┬ºconstant(11)] = function()
  112.    {
  113.       _global[┬º┬ºconstant(14)][┬º┬ºconstant(63)]();
  114.       this[┬º┬ºconstant(64)]();
  115.       this[┬º┬ºconstant(16)][┬º┬ºconstant(25)](1);
  116.    };
  117.    _loc2_[┬º┬ºconstant(65)] = function()
  118.    {
  119.       this[┬º┬ºconstant(64)]();
  120.       this[┬º┬ºconstant(16)][┬º┬ºconstant(25)](┬º┬ºconstant(66));
  121.       f[┬º┬ºconstant(69)][┬º┬ºconstant(70)](this[┬º┬ºconstant(16)][┬º┬ºconstant(68)],_global[┬º┬ºconstant(67)]);
  122.       f[┬º┬ºconstant(69)][┬º┬ºconstant(72)](this[┬º┬ºconstant(16)][┬º┬ºconstant(68)],this[┬º┬ºconstant(16)],this[┬º┬ºconstant(16)][┬º┬ºconstant(25)],┬º┬ºconstant(71));
  123.       if(_global[┬º┬ºconstant(73)] == ┬º┬ºconstant(74))
  124.       {
  125.          f[┬º┬ºconstant(69)][┬º┬ºconstant(70)](this[┬º┬ºconstant(16)][┬º┬ºconstant(76)],_global[┬º┬ºconstant(75)]);
  126.          f[┬º┬ºconstant(69)][┬º┬ºconstant(72)](this[┬º┬ºconstant(16)][┬º┬ºconstant(76)],this,this[┬º┬ºconstant(12)],┬º┬ºconstant(46));
  127.       }
  128.       else
  129.       {
  130.          this[┬º┬ºconstant(16)][┬º┬ºconstant(76)][┬º┬ºconstant(35)] = false;
  131.       }
  132.       var _loc3_ = 0;
  133.       while(_loc3_ <= 5)
  134.       {
  135.          var _loc4_ = this[┬º┬ºconstant(16)][┬º┬ºconstant(77)][┬º┬ºconstant(78)][┬º┬ºconstant(79) + _loc3_];
  136.          _loc4_[┬º┬ºconstant(80)](1);
  137.          _loc3_ = _loc3_ + 1;
  138.       }
  139.       f[┬º┬ºconstant(82)][┬º┬ºconstant(83)][┬º┬ºconstant(84)](this,this[┬º┬ºconstant(81)],1000);
  140.    };
  141.    _loc2_[┬º┬ºconstant(81)] = function()
  142.    {
  143.       var _loc7_ = _global[┬º┬ºconstant(85)][┬º┬ºconstant(86)][┬º┬ºconstant(87)][┬º┬ºconstant(88)]();
  144.       var _loc3_ = 0;
  145.       while(_loc3_ <= 5)
  146.       {
  147.          var _loc5_ = this[┬º┬ºconstant(16)][┬º┬ºconstant(77)][┬º┬ºconstant(78)][┬º┬ºconstant(79) + _loc3_];
  148.          var _loc4_ = _loc7_[┬º┬ºconstant(90)](_loc7_[┬º┬ºconstant(89)] - _loc3_ - 1);
  149.          if(_loc4_)
  150.          {
  151.             var _loc6_ = Number(_loc4_);
  152.             _loc5_[┬º┬ºconstant(91)] = 4 + 3 * _loc6_;
  153.             f[┬º┬ºconstant(82)][┬º┬ºconstant(83)][┬º┬ºconstant(84)](this,this[┬º┬ºconstant(92)],_loc3_ * 80,_loc5_);
  154.          }
  155.          _loc3_ = _loc3_ + 1;
  156.       }
  157.    };
  158.    _loc2_[┬º┬ºconstant(92)] = function(mc)
  159.    {
  160.       mc[┬º┬ºconstant(93)] = f[┬º┬ºconstant(82)][┬º┬ºconstant(83)][┬º┬ºconstant(95)](this,this[┬º┬ºconstant(94)],mc);
  161.       mc[┬º┬ºconstant(25)](mc[┬º┬ºconstant(96)] + 1);
  162.    };
  163.    _loc2_[┬º┬ºconstant(94)] = function(mc)
  164.    {
  165.       if(mc[┬º┬ºconstant(96)] == mc[┬º┬ºconstant(91)])
  166.       {
  167.          mc[┬º┬ºconstant(97)]();
  168.          delete mc[┬º┬ºconstant(93)];
  169.          return undefined;
  170.       }
  171.    };
  172.    _loc2_[┬º┬ºconstant(64)] = function()
  173.    {
  174.       if(this[┬º┬ºconstant(16)])
  175.       {
  176.          return undefined;
  177.       }
  178.       this[┬º┬ºconstant(16)] = _global[┬º┬ºconstant(30)][┬º┬ºconstant(34)](┬º┬ºconstant(4),┬º┬ºconstant(98),_global[┬º┬ºconstant(30)][┬º┬ºconstant(31)]());
  179.       this[┬º┬ºconstant(16)][┬º┬ºconstant(99)] = 400;
  180.       this[┬º┬ºconstant(16)][┬º┬ºconstant(100)] = 300;
  181.       this[┬º┬ºconstant(16)][┬º┬ºconstant(101)][┬º┬ºconstant(35)] = true;
  182.       this[┬º┬ºconstant(103)](_global[┬º┬ºconstant(102)]);
  183.    };
  184.    _loc2_[┬º┬ºconstant(104)] = function()
  185.    {
  186.       var _loc3_ = [this[┬º┬ºconstant(16)][┬º┬ºconstant(107)],this[┬º┬ºconstant(16)][┬º┬ºconstant(106)],this[┬º┬ºconstant(16)][┬º┬ºconstant(105)]];
  187.       this[┬º┬ºconstant(16)][┬º┬ºconstant(108)][┬º┬ºconstant(35)] = false;
  188.       this[┬º┬ºconstant(16)][┬º┬ºconstant(109)][┬º┬ºconstant(35)] = false;
  189.       this[┬º┬ºconstant(16)][┬º┬ºconstant(110)][┬º┬ºconstant(35)] = false;
  190.       this[┬º┬ºconstant(16)][┬º┬ºconstant(111)][┬º┬ºconstant(35)] = false;
  191.       this[┬º┬ºconstant(16)][┬º┬ºconstant(112)][┬º┬ºconstant(35)] = false;
  192.       if(_global[┬º┬ºconstant(113)] != ┬º┬ºconstant(114) && _global[┬º┬ºconstant(113)] != undefined)
  193.       {
  194.          _loc3_[┬º┬ºconstant(115)](this[┬º┬ºconstant(16)][┬º┬ºconstant(109)]);
  195.       }
  196.       if(_global[┬º┬ºconstant(51)] != ┬º┬ºconstant(114) && _global[┬º┬ºconstant(51)] != undefined)
  197.       {
  198.          _loc3_[┬º┬ºconstant(115)](this[┬º┬ºconstant(16)][┬º┬ºconstant(111)]);
  199.       }
  200.       if(_global[┬º┬ºconstant(52)] != ┬º┬ºconstant(114) && _global[┬º┬ºconstant(52)] != undefined)
  201.       {
  202.          _loc3_[┬º┬ºconstant(115)](this[┬º┬ºconstant(16)][┬º┬ºconstant(112)]);
  203.       }
  204.       if(_global[┬º┬ºconstant(48)] != ┬º┬ºconstant(114) && _global[┬º┬ºconstant(48)] != undefined)
  205.       {
  206.          _loc3_[┬º┬ºconstant(115)](this[┬º┬ºconstant(16)][┬º┬ºconstant(110)]);
  207.       }
  208.       if(_global[┬º┬ºconstant(116)] != ┬º┬ºconstant(117))
  209.       {
  210.          _loc3_[┬º┬ºconstant(115)](this[┬º┬ºconstant(16)][┬º┬ºconstant(108)]);
  211.       }
  212.       this[┬º┬ºconstant(118)](_loc3_);
  213.       f[┬º┬ºconstant(69)][┬º┬ºconstant(70)](this[┬º┬ºconstant(16)][┬º┬ºconstant(120)],_global[┬º┬ºconstant(119)]);
  214.       f[┬º┬ºconstant(69)][┬º┬ºconstant(70)](this[┬º┬ºconstant(16)][┬º┬ºconstant(107)],_global[┬º┬ºconstant(121)]);
  215.       f[┬º┬ºconstant(69)][┬º┬ºconstant(70)](this[┬º┬ºconstant(16)][┬º┬ºconstant(106)],_global[┬º┬ºconstant(122)]);
  216.       f[┬º┬ºconstant(69)][┬º┬ºconstant(70)](this[┬º┬ºconstant(16)][┬º┬ºconstant(105)],_global[┬º┬ºconstant(123)]);
  217.       f[┬º┬ºconstant(69)][┬º┬ºconstant(70)](this[┬º┬ºconstant(16)][┬º┬ºconstant(108)],_global[┬º┬ºconstant(124)]);
  218.       f[┬º┬ºconstant(69)][┬º┬ºconstant(70)](this[┬º┬ºconstant(16)][┬º┬ºconstant(109)],_global[┬º┬ºconstant(125)]);
  219.       f[┬º┬ºconstant(69)][┬º┬ºconstant(70)](this[┬º┬ºconstant(16)][┬º┬ºconstant(110)],_global[┬º┬ºconstant(126)]);
  220.       f[┬º┬ºconstant(69)][┬º┬ºconstant(70)](this[┬º┬ºconstant(16)][┬º┬ºconstant(111)],_global[┬º┬ºconstant(127)]);
  221.       f[┬º┬ºconstant(69)][┬º┬ºconstant(70)](this[┬º┬ºconstant(16)][┬º┬ºconstant(112)],_global[┬º┬ºconstant(128)]);
  222.       var _loc4_ = eval(┬º┬ºconstant(131))[┬º┬ºconstant(132)](_global[┬º┬ºconstant(130)],┬º┬ºconstant(129));
  223.       if(_loc4_[┬º┬ºconstant(133)][┬º┬ºconstant(134)][┬º┬ºconstant(89)] > 0)
  224.       {
  225.          f[┬º┬ºconstant(69)][┬º┬ºconstant(72)](this[┬º┬ºconstant(16)][┬º┬ºconstant(107)],this,this[┬º┬ºconstant(12)],┬º┬ºconstant(28));
  226.       }
  227.       else
  228.       {
  229.          f[┬º┬ºconstant(69)][┬º┬ºconstant(135)](this[┬º┬ºconstant(16)][┬º┬ºconstant(107)]);
  230.       }
  231.       f[┬º┬ºconstant(69)][┬º┬ºconstant(72)](this[┬º┬ºconstant(16)][┬º┬ºconstant(120)],this,this[┬º┬ºconstant(12)],┬º┬ºconstant(20));
  232.       f[┬º┬ºconstant(69)][┬º┬ºconstant(72)](this[┬º┬ºconstant(16)][┬º┬ºconstant(106)],this,this[┬º┬ºconstant(12)],┬º┬ºconstant(29));
  233.       f[┬º┬ºconstant(69)][┬º┬ºconstant(72)](this[┬º┬ºconstant(16)][┬º┬ºconstant(105)],this,this[┬º┬ºconstant(12)],┬º┬ºconstant(44));
  234.       f[┬º┬ºconstant(69)][┬º┬ºconstant(72)](this[┬º┬ºconstant(16)][┬º┬ºconstant(108)],this,this[┬º┬ºconstant(12)],┬º┬ºconstant(40));
  235.       f[┬º┬ºconstant(69)][┬º┬ºconstant(72)](this[┬º┬ºconstant(16)][┬º┬ºconstant(109)],this,this[┬º┬ºconstant(12)],┬º┬ºconstant(36));
  236.       this[┬º┬ºconstant(16)][┬º┬ºconstant(110)][┬º┬ºconstant(136)] = f[┬º┬ºconstant(82)][┬º┬ºconstant(83)][┬º┬ºconstant(95)](this,this[┬º┬ºconstant(12)],┬º┬ºconstant(46));
  237.       this[┬º┬ºconstant(16)][┬º┬ºconstant(111)][┬º┬ºconstant(136)] = f[┬º┬ºconstant(82)][┬º┬ºconstant(83)][┬º┬ºconstant(95)](this,this[┬º┬ºconstant(12)],┬º┬ºconstant(50));
  238.       this[┬º┬ºconstant(16)][┬º┬ºconstant(112)][┬º┬ºconstant(136)] = f[┬º┬ºconstant(82)][┬º┬ºconstant(83)][┬º┬ºconstant(95)](this,this[┬º┬ºconstant(12)],┬º┬ºconstant(52));
  239.    };
  240.    _loc2_[┬º┬ºconstant(118)] = function(buttons)
  241.    {
  242.       var _loc4_ = 115;
  243.       var _loc7_ = buttons[┬º┬ºconstant(89)] * _loc4_;
  244.       var _loc8_ = 800 - _loc7_;
  245.       var _loc5_ = eval(┬º┬ºconstant(137))[┬º┬ºconstant(138)](35,_loc8_ / (buttons[┬º┬ºconstant(89)] - 1));
  246.       _loc7_ += (buttons[┬º┬ºconstant(89)] - 1) * _loc5_;
  247.       var _loc6_ = (- _loc7_) / 2 + _loc4_ / 2;
  248.       var _loc1_ = 0;
  249.       while(_loc1_ < buttons[┬º┬ºconstant(89)])
  250.       {
  251.          var _loc2_ = buttons[_loc1_];
  252.          _loc2_[┬º┬ºconstant(35)] = true;
  253.          _loc2_[┬º┬ºconstant(99)] = _loc6_ + _loc1_ * (_loc4_ + _loc5_);
  254.          _loc1_ = _loc1_ + 1;
  255.       }
  256.    };
  257.    _loc2_[┬º┬ºconstant(139)] = function()
  258.    {
  259.       this[┬º┬ºconstant(16)][┬º┬ºconstant(18)]();
  260.       this[┬º┬ºconstant(16)] = undefined;
  261.    };
  262.    _loc2_[┬º┬ºconstant(103)] = function(lan)
  263.    {
  264.       this[┬º┬ºconstant(16)][┬º┬ºconstant(101)][┬º┬ºconstant(35)] = true;
  265.       if(lan == ┬º┬ºconstant(140))
  266.       {
  267.          this[┬º┬ºconstant(16)][┬º┬ºconstant(101)][┬º┬ºconstant(25)](2);
  268.       }
  269.       else if(lan == ┬º┬ºconstant(141))
  270.       {
  271.          this[┬º┬ºconstant(16)][┬º┬ºconstant(101)][┬º┬ºconstant(25)](1);
  272.       }
  273.       f[┬º┬ºconstant(142)][┬º┬ºconstant(143)][┬º┬ºconstant(144)](lan);
  274.       this[┬º┬ºconstant(104)]();
  275.    };
  276.    _loc2_[┬º┬ºconstant(45)] = function()
  277.    {
  278.       this[┬º┬ºconstant(16)][┬º┬ºconstant(34)](┬º┬ºconstant(145),┬º┬ºconstant(17),this[┬º┬ºconstant(16)][┬º┬ºconstant(31)]());
  279.    };
  280.    ┬º┬ºpush(┬º┬ºconstant(146)(f.h[┬º┬ºconstant(4)][┬º┬ºconstant(7)],null,1));
  281. }
  282. §§pop();
  283.